<!DOCTYPE html>
<html lang="zh-cmn-Hans-CN">

<head>
    <meta charset="utf-8">
    <!-- 优先使用IE最新版本和 Chrome -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <!-- 360 浏览器内核控制 -->
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- SEO 三项优化 -->
    <!-- 页面描述 -->
    <meta name="description" content="" />
    <!-- 页面关键词 -->
    <meta name="keywords" content="" />
    <!-- 页面标题 -->
    <title>注册页面</title>
    <!-- Bootstrap core CSS -->
    <link href="<?php echo base_url() ?>application/views/css/bootstrap.css" rel="stylesheet">
    <style>
    body {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    form.register input {
        width: 360px;
        height: 46px;
        line-height: 46px;
        padding-left: 40px;
        background: url('<?php echo base_url() ?>application/views/img/icon.png') no-repeat -70px -98px;
        border: 1px inset #C5C5C5;
        margin: 0 auto 20px;
        background-color: white;
    }

    form.register input[type="password"] {
        background: url('<?php echo base_url() ?>application/views/img/icon.png') no-repeat -70px -135px;
    }

    form.register button, form.register p {
        width: 360px;
        height: 46px;
        margin: auto;
    }
    </style>
</head>

<body>
    <div class="container">
    <!-- CI框架的表单验证辅助函数无法在AJAX方式下正常使用 2015年12月12日经过3个小时折腾后发现的结果。 -->
        <form class="form-horizontal register" action="<?php echo site_url('user/register') ?>" method="post">
            <!-- 注意：在CI中，只接受元素的name属性值，不接受id属性值，如下面的name改为id后，CI的表单检验功能就失效了。 -->
            <input type="email" class="form-control" name="email" placeholder="请输入你的邮箱" required autofocus value="<?php echo set_value('email'); ?>">
            <?php echo form_error('email'); ?>
                <input type="password" class="form-control" name="password" placeholder="请输入你的密码" required value="<?php echo set_value('password'); ?>">
                <?php echo form_error('password'); ?>
                    <button type="submit" class="btn btn-lg btn-primary btn-block">注册</button>
        </form>
    </div>
    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="<?php echo base_url() ?>application/views/js/jquery.min.js"></script>
    <script src="<?php echo base_url() ?>application/views/js/bootstrap.js"></script>
    <script src="<?php echo base_url('application/views/js/layer/layer.js'); ?>"></script>

</body>

</html>
